package com.cyx.mapper;

import com.cyx.pojo.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    int addBook(Book book);
    int updateBook(Book book);
    int reduceBookStock(int bookId);
    int increaseBookStock(int bookId);
    int deleteBook(int bookId);
    Book getBookById(int bookId);
    List<Book> getBookList(@Param("bookName") String bookName, @Param("detail") String detail);
}
